<template lang="jade">
  .item-detail-comment
    .head
      .title
        i.fa.fa-comment
        | 评论
      .after 查看全部评论(11)
    .list
      ul
        li
          .img
            img(src="https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1461168172&di=a5acf27d2c50b0f1ce537d84b81d330c&src=http://img4.duitang.com/uploads/item/201312/05/20131205172421_QKF4K.jpeg")
          .content
            .my-row
              .title grepug
              .after
                i.fa.fa-star
                i.fa.fa-star
                i.fa.fa-star
                i.fa.fa-star-half-empty
                i.fa.fa-star-o
                span 2016-04-23
            .my-row
              div 还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢还行不错我喜欢
        li
          .img
            img(src="https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1461168172&di=a5acf27d2c50b0f1ce537d84b81d330c&src=http://img4.duitang.com/uploads/item/201312/05/20131205172421_QKF4K.jpeg")
          .content
            .my-row
              .title grepug
              .after 2016-1-1
            .my-row
              div 还行
</template>


<style lang="less">
@import "../less/libs/color-vars.less";
@import "../less/libs/mixins.less";

.item-detail-comment {
  padding: 0.3rem 0.8rem;
  .head {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    div {
      display: inline-block;
      width: 50%;
    }
    .title {
      font-size: 1.1rem;
      i {
        margin-right: 0.5rem;
      }
    }
    .after {
      text-align: right;
    }
    &::after {
      content: '';
      background-color: darken(#fff, 20%);
      height: 1px;
      width: 100%;
      position: absolute;
      left: 0;
      bottom: 0;
    }
  }
  .list {
    ul {
      margin: 0;
      padding: 0;
    }
    ul li {
      list-style: none;
      position: relative;
      > div {
        display: inline-block;
        width: 86%;
      }
      .img {
        width: 12%;
        position: absolute;
        top: 0.5rem;
        img {
          width: 2.2rem;
          border-radius: 50%;
        }
      }
      .content {
        position: relative;
        padding-left: 2.8rem;
        .my-row {
          div {
            display: inline-block;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            &:first-child {
              padding-top: 0;
              color: @gray;
              font-size: 0.9rem;
            }
          }
          .title {
            width: 30%;
          }
          .after {
            text-align: right;
            width: 70%;
            font-size: 0.8rem;
            span {
              margin-left: 0.5rem;
              color: @gray;
            }
            i {
              color: red;
            }
          }
        }
        &::after {
          content: '';
          background-color: darken(#fff, 20%);
          height: 1px;
          width: 100%;
          position: absolute;
          left: 0;
          bottom: 0;
        }
      }
    }
  }
}
</style>

<script>
  export default {

  }
</script>
